Skip to content

Cash-only equity display and anti-margin execution guards - #130

Merged
Pigbibi merged 2 commits into
mainfrom
fix/cash-only-equity-no-margin
Jun 26, 2026
Merged

Cash-only equity display and anti-margin execution guards#130
Pigbibi merged 2 commits into
mainfrom
fix/cash-only-equity-no-margin

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Use cash-only equity for strategy total assets and available cash display (no margin double-count)
  • Add rotation guards and cash-only order sizing to prevent half-rebalance margin usage
  • Update notification labels: 购买力 → 可用现金
  • Pin us-equity-strategies to 6772cb1 with shared cash_only_equity helpers

Test plan

  • Platform unit tests updated/passing locally where runnable
  • Verify next rebalance notification shows 可用现金 aligned with broker cash balance
  • Confirm Cloud Run deploy completes after merge

Made with Cursor

Pigbibi and others added 2 commits June 27, 2026 04:35
Use actual cash balance instead of margin buying power for strategy total assets and notifications, and add rotation guards to prevent half-rebalance margin usage.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit 8d2dd29 into main Jun 26, 2026
1 check failed
@Pigbibi
Pigbibi deleted the fix/cash-only-equity-no-margin branch June 26, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant